package com.probiz.estore.eai.product;

import com.probiz.estore.common.service.ProductService;
import com.probiz.estore.eai.common.GenericPartialUnmarshaller;
import com.probiz.estore.eai.product.generated.Inventory;

public class InventoryPartialUnmarshaller extends GenericPartialUnmarshaller<Inventory>  {
	private ProductService productService;

	public void setProductService(ProductService productService) {
		this.productService = productService;
	}


	public static void main(String[] argv) throws Exception {
//		InventoryPartialUnmarshaller un = new InventoryPartialUnmarshaller();
	}

	@Override
	public void processEntity(Inventory entity) throws Exception {
		productService.doImportProductForEai(entity);
	}
}
